package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Message;
import com.tanhua.dubbo.server.pojo.Publish;
import com.tanhua.dubbo.server.vo.PageInfo;

import java.util.Date;
import java.util.List;

/**
 * @Author: zxw
 * @Description:
 * @Date: Created in 10:58 2021/1/17
 * @ModifiedBy:
 */
public interface MessageApi {

    /**
     * @param userId
     * @param id
     * @param page
     * @param sd
     * @param ed
     * @param pageSize
     * @param sortProp
     * @param sortOrder
     * @param state
     * @return
     */
    PageInfo<Message>queryMessageList(Long userId, String id, Integer page, Integer pageSize, Long sd, Long ed, String sortProp, String sortOrder, String state);


    /**
     * 置顶消息
     * @param publishId
     * @return
     */
    Boolean topOrUnTop(String publishId,Integer topState);

    /**
     * 通过或拒绝
     * @param ids
     * @param state
     * @return
     */
    Boolean passOrReject(List<String> ids, Integer state);

    /**
     * 撤销
     * @param ids
     * @return
     */
    Boolean revocationMsg(List<String> ids);

    /**
     * 查询消息详情
     * @param publishId
     * @return
     */
    Message queryById(String publishId);
}
